<template>
  <div class="index">
    <transition name="fade" mode="out-in">
      <router-view></router-view>
    </transition>
    <van-tabbar route v-model="active" active-color="orangered">
      <van-tabbar-item icon="wap-home" to="/index/home">首页</van-tabbar-item>
      <van-tabbar-item icon="hot" to="/index/baobao">爆爆团</van-tabbar-item>
      <van-tabbar-item icon="todo-list" to="/index/order">订单</van-tabbar-item>
      <van-tabbar-item icon="manager" to="/index/mine">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data(){
    return {
      active:0,
      arr:[]
    }
  },
  mounted(){
    
  }
}
</script>

<style lang="scss" scoped>
.fade-enter {
  opacity: 0;
}
.fade-enter-active {
  transition: all .3s;
}
.fade-enter-to {
  opacity: 1;
}

.fade-leave {
  opacity: 1;
}
.fade-leave-active {
  transition: all .3s;
}
.fade-leave-to {
  opacity: 0;
}
</style>
